package com.huopaolan.yohuoshop.Adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huopaolan.yohuoshop.Bean.CommunityEntity;
import com.huopaolan.yohuoshop.NetWork.API;
import com.huopaolan.yohuoshop.R;

public class StrollNewAdapter extends BaseQuickAdapter<CommunityEntity.Values, BaseViewHolder> {
    public StrollNewAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, CommunityEntity.Values item) {
        helper.setText(R.id.stroll_title, item.see_news_title);
        ImageView imageview = helper.getView(R.id.stroll_image);
        Glide.with(helper.itemView.getContext()).load(API.BaseUrl + item.see_news_img).into(imageview);
    }
}
